package website.sgg.simpleFactory;

/**
 * @author: longhc@citycloud.com.cn
 * @since: 2023/1/10 10:23
 * @version: 1.0
 */
public abstract class Pizza {
    protected String name;

    public abstract void prepare();

    public void bake() {
        System.out.println(name + "bake");
    }

    public void cut() {
        System.out.println(name + "cut");
    }

    public void box() {
        System.out.println(name + "box");
    }

    public void setName(String name) {
        this.name = name;
    }
}
